import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/innerCar/list',
    method: 'post',
    data: query
  })
}

export function deleteInnerCar(id) {
  return request({
    url: '/innerCar/deleteInnerCar/' + id,
    method: 'post',
  })
}

export function createInnerCar(query) {
  return request({
    url: '/innerCar/createInnerCar',
    method: 'post',
    data: query
  })
}

export function updateInnerCar(query) {
  return request({
    url: '/innerCar/updateInnerCar',
    method: 'post',
    data: query
  })
}
